﻿using System;
using System.Collections.Generic;
using System.Text;
using Cn.Edwon.Biz;
using Cn.Edwon.Web.Session;
using System.Web;

namespace Cn.Cellula.Biz.Port {
    public interface ILogBiz:IBiz {
        /// <summary>
        /// 记录消息
        /// </summary>
        /// <param name="rContent"></param>
        /// <param name="rOperator"></param>
        void Info(String rContent,ISessActor rActor,HttpRequest rRequest);
        /// <summary>
        /// 记录异常
        /// </summary>
        /// <param name="rContent"></param>
        /// <param name="rOperator"></param>
        void Error(String rContent, ISessActor rActor,HttpRequest rRequest);

        /// <summary>
        /// 记录更新操作
        /// </summary>
        /// <param name="rEOName"></param>
        /// <param name="rActor"></param>
        /// <param name="rIP"></param>
        void LogUpdate(String rEOName,String rItemName, ISessActor rActor, HttpRequest rRequest);

        /// <summary>
        /// 记录删除操作
        /// </summary>
        /// <param name="rEOName"></param>
        /// <param name="rActor"></param>
        /// <param name="rIP"></param>
        void LogDelete(String rEOName,Int32 rCount, ISessActor rActor, HttpRequest rRequest);
        /// <summary>
        /// 记录插入操作
        /// </summary>
        /// <param name="rEOName"></param>
        /// <param name="rActor"></param>
        /// <param name="rIP"></param>
        void LogInsert(String rEOName,String rItemName,ISessActor rActor, HttpRequest rRequest);
    }
}
